const path = require('path');
const ZipPlugin = require('./plugins/zip-plugin.js');

module.exports = {
  entry: './src/index.js',
  output: {
    filename: 'bundle.js',
    path: path.join(__dirname, 'dist'),
  },
  mode: 'production',
  plugins: [
    new ZipPlugin({ filename: 'offline' }),
  ],
};